import request from '@/utils/request';

const api = '/api/FaPiaoState';

export async function get() {
  return request(`${api}`);
}

export async function remove(id) {
  return request(`${api}/${id}`, {
    method: 'DELETE',
  });
}

export async function create(params) {
  return request(`${api}/`, {
    method: 'POST',
    body: params,
  });
}

export async function update(params) {
  return request(`${api}/${params.id}`, {
    method: 'PUT',
    body: params,
  });
}
